package com.tinycloud.miracll.product.service.impl;

import com.tinycloud.common.datasource.annotation.Master;
import com.tinycloud.common.datasource.annotation.Slave1;
import com.tinycloud.miracll.product.domain.DeviationDataDetail;
import com.tinycloud.miracll.product.mapper.DeviationDataDetailMapper;
import com.tinycloud.miracll.product.service.IDeviationDataDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 偏差数据明细表Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-06-29
 */
@Service
@Master

public class DeviationDataDetailServiceImpl implements IDeviationDataDetailService
{
    @Autowired
    private DeviationDataDetailMapper deviationDataDetailMapper;

    /**
     * 查询偏差数据明细表
     * 
     * @param id 偏差数据明细表ID
     * @return 偏差数据明细表
     */
    @Override
    public DeviationDataDetail selectDeviationDataDetailById(String id)
    {
        return deviationDataDetailMapper.selectDeviationDataDetailById(id);
    }

    /**
     * 查询偏差数据明细表列表
     * 
     * @param deviationDataDetail 偏差数据明细表
     * @return 偏差数据明细表
     */
    @Override
    public List<DeviationDataDetail> selectDeviationDataDetailList(DeviationDataDetail deviationDataDetail)
    {
        return deviationDataDetailMapper.selectDeviationDataDetailList(deviationDataDetail);
    }

    /**
     * 新增偏差数据明细表
     * 
     * @param deviationDataDetail 偏差数据明细表
     * @return 结果
     */
    @Override
    public int insertDeviationDataDetail(DeviationDataDetail deviationDataDetail)
    {
        return deviationDataDetailMapper.insertDeviationDataDetail(deviationDataDetail);
    }

    /**
     * 修改偏差数据明细表
     * 
     * @param deviationDataDetail 偏差数据明细表
     * @return 结果
     */
    @Override
    public int updateDeviationDataDetail(DeviationDataDetail deviationDataDetail)
    {
        return deviationDataDetailMapper.updateDeviationDataDetail(deviationDataDetail);
    }

    /**
     * 批量删除偏差数据明细表
     * 
     * @param ids 需要删除的偏差数据明细表ID
     * @return 结果
     */
    @Override
    public int deleteDeviationDataDetailByIds(String[] ids)
    {
        return deviationDataDetailMapper.deleteDeviationDataDetailByIds(ids);
    }

    /**
     * 删除偏差数据明细表信息
     * 
     * @param id 偏差数据明细表ID
     * @return 结果
     */
    @Override
    public int deleteDeviationDataDetailById(String id)
    {
        return deviationDataDetailMapper.deleteDeviationDataDetailById(id);
    }
}
